.class Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher$1;
.super Ljava/lang/Object;
.source "FirebaseRemoteConfigFetcher.java"

# interfaces
.implements Lcom/google/android/gms/tasks/OnCompleteListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->init(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/google/android/gms/tasks/OnCompleteListener<",
        "Ljava/lang/Void;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;

.field final synthetic val$context:Landroid/content/Context;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;Landroid/content/Context;)V
    .locals 0

    .line 38
    iput-object p1, p0, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher$1;->this$0:Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher$1;->val$context:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onComplete(Lcom/google/android/gms/tasks/Task;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/android/gms/tasks/Task<",
            "Ljava/lang/Void;",
            ">;)V"
        }
    .end annotation

    .line 41
    invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->isSuccessful()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 42
    iget-object p1, p0, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher$1;->this$0:Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->mFirebaseRemoteConfig:Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;

    invoke-virtual {p1}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;->activateFetched()Z

    .line 43
    iget-object p1, p0, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher$1;->this$0:Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;

    const-string v0, "remove_ads_sku"

    const-string v1, "remove_ads"

    invoke-virtual {p1, v0, v1}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getStringVithDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 44
    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED_SELECTED_SKU:Llt/minvib/magicpreferences/MagicStringPreference;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher$1;->val$context:Landroid/content/Context;

    invoke-virtual {v0, v1, p1}, Llt/minvib/magicpreferences/MagicStringPreference;->set(Landroid/content/Context;Ljava/lang/String;)V

    :cond_0
    return-void
.end method
